home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / pmlpp140.zip / SRC / pmlpp.h < prev    next >
C/C++ Source or Header  |  1997-08-01  |  2KB  |  92 lines

  1. /*
  2. PMLPP - A POP3 mail "peeker" for OS/2<tm>.
  3. Copyright (C) 1997 James R. Louvau
  4.  
  5. This program is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU General Public License
  7. as published by the Free Software Foundation; either version 2
  8. of the License, or (at your option) any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. You may contact the author of PMLPP at:
  20.  
  21. E-mail     : jim@vwm.com
  22. Snail-mail : Jim Louvau
  23.              3437 335th St.
  24.              West Des Moines, IA 50266
  25. */
  26.  
  27. #ifndef __PMLPP_H
  28. #  define __PMLPP_H
  29.  
  30. #  pragma once
  31.  
  32. #  include <stdlib.h>
  33. #  include <stddef.h>
  34. #  include <stdio.h>
  35. #  include <string.h>
  36.  
  37. #  define  INCL_DOS
  38. #  define  INCL_DOSERRORS
  39. #  define  INCL_PM
  40. #  include <os2.h>
  41.  
  42. #  include "controls.h"
  43.  
  44. #  define  MRZERO      MRFROMSHORT( 0 )
  45. #  define  MRTRUE      MRFROMSHORT( TRUE )
  46. #  define  MRFALSE     MRFROMSHORT( FALSE )
  47. #  define  THREADSTKSZ 32768
  48.  
  49. #  pragma pack( 1 )
  50.  
  51.    typedef struct _config 
  52.    {  
  53.       BOOL     bSound;
  54.       ULONG    ulInterval;
  55.       USHORT   usPort;
  56.       CHAR     szServer[ 256 ];
  57.       CHAR     szUser[ 32 ];
  58.       CHAR     szPassword[ 32 ];
  59.       CHAR     szProgram[ 256 ];
  60.       CHAR     szOptions[ 256 ];
  61.       CHAR     szDirectory[ 256 ];
  62.       POINTL   ptl;
  63.       BOOL     bForceIP;
  64.       BOOL     bSavePW;
  65.  
  66.       /* everything above is saved to the INI file */
  67. #     define   CFGSAVESIZE offsetof( struct _config, sock )
  68.  
  69.       int      sock;
  70.       HWND     hwndNotify;
  71.       TID      tid;
  72.       HEV      hev;
  73.       HTIMER   htimer;
  74.       BOOL     bAlive;
  75.       BOOL     bNoAPOP;
  76.  
  77.    }  CONFIG, *PCONFIG;
  78.  
  79. #  pragma pack( )
  80.  
  81.    extern BOOL StartPolling( PCONFIG pcfg );
  82.    extern void StopPolling( PCONFIG pcfg );
  83.    extern void PollNow( PCONFIG pcfg );
  84.  
  85.    extern BOOL LoadProfile( HWND hwnd, PCONFIG pprf );
  86.    extern void SaveProfile( HWND hwnd, PCONFIG pprf );
  87.    extern void Configure( HWND hwnd, PCONFIG pprf );
  88.  
  89. #endif
  90.  
  91.  
  92.